Skip to content

feat(calendar): add merged media endpoint contract#849

Merged
vladjerca merged 1 commit into
masterfrom
feat/media_calendar
Jul 13, 2026
Merged

feat(calendar): add merged media endpoint contract#849
vladjerca merged 1 commit into
masterfrom
feat/media_calendar

Conversation

@vladjerca

Copy link
Copy Markdown
Contributor

What

Adds the contract for the merged media calendar:

GET /calendars/:target/media/:start_date/:days   (?type=movie|show)

Per target (my / all), returns a single feed of movies and episodes for the window, ordered by availability date. type narrows to one media type; omitted returns both. The response reuses the movie/episode union schema (hotReleaseResponseSchema).

Why

Backs the standard-calendar mirror of the hot-releases collapse. The worker serves it (trakt/trakt-workers#1182, merged); this exposes it typed so trakt-web can drop its two-request upcoming-media feed to one call.

Version

Bumps @trakt/api to 0.4.23.

Adds the `/calendars/:target/media/:start_date/:days` contract: the merged feed
of movies and episodes for the window, ordered by availability date, per target
(`my` / `all`). Optional `type` narrows to a single media type; the response
reuses the movie/episode union schema. Bumps the package to 0.4.23.
@vladjerca vladjerca merged commit 8c7ef82 into master Jul 13, 2026
3 checks passed
@vladjerca vladjerca deleted the feat/media_calendar branch July 13, 2026 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant